import 'package:flutter/material.dart';
import "package:myapp/Common/Remote/rermote_actions.dart";

class VehiclePage extends StatefulWidget {
  @override
  _VehiclePageState createState() => _VehiclePageState();
}

class _VehiclePageState extends State<VehiclePage> with SingleTickerProviderStateMixin {
  AnimationController _controller;

  @override
  void initState() {
    _controller = AnimationController(vsync: this);
    super.initState();
  }

  @override
  void dispose() {
    _controller.dispose();
    super.dispose();
  }

  @override
  Widget build(BuildContext context) {
    ///Hard coding for testt
    List<RemoteSet> remoteSets = [
      RemoteSet(vin: "LBV6P410XLMB49511", remote: QuickRemote.horn),
      RemoteSet(vin: "LBV6P410XLMB49511", remote: QuickRemote.lights),
      RemoteSet(vin: "LBV6P410XLMB49511", remote: QuickRemote.unlock),
      RemoteSet(vin: "LBV6P410XLMB49511", remote: QuickRemote.lock)
    ];
    return Container(
      child: SingleChildScrollView(
        scrollDirection: Axis.vertical,
        padding: EdgeInsets.all(2.0),
        child: Center(
          child: Column(
            children: <Widget>[
              Text("========1"),
              Image(image: AssetImage("assets/recommended_service_2.png"),),
              Text("========2"),
              RemoteActionsWidget(remoteSets: remoteSets),
              Text("========3"),
            ],
          ),
        ),
      ),
    );
  }
}